# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-pyrsistent
pkgver=0.18.0
pkgrel=1
pkgdesc="Persistent/Functional/Immutable data structures"
url="https://github.com/tobgu/pyrsistent"
arch="all"
license="MIT"
depends="py3-six"
makedepends="py3-setuptools python3-dev"
checkdepends="py3-hypothesis py3-pytest py3-pytest-runner"
source="pyrsistent-$pkgver.tar.gz::https://github.com/tobgu/pyrsistent/archive/v$pkgver.tar.gz"
builddir="$srcdir/pyrsistent-$pkgver"
provides="py-pyrsistent=$pkgver-r$pkgrel"

prepare() {
	default_prepare
	sed -i 's/<5//g' setup.py
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
6bbd6fbb5b3466aac6b9a56a55114b9c12b9b539f88102c64e704879cfe68113badcdecba2be96d17db7799d12f57c7f9ef3be755b25464aaf1d7d944eb82851  pyrsistent-0.18.0.tar.gz
"
